package com.lzhsite.technology.designPattern.mediator.DepartmentDemo;

public class User
{
    private String userId;
    private String userName;

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public boolean dimission()
    {
        DepartmentUserMediatorImplement mediator = DepartmentUserMediatorImplement.getInstance();
        mediator.deleteUser(userId);
        return true;
    }
}
